<!DOCTYPE html>
<!--
  ~ Copyright (C) 2018 guomw.Inc. All rights reserved.
  ~ 项目名称： mysite
  ~ 文件名称： edit.html
  ~ Date：18-9-25 下午5:55
  ~ Author: guomw
  -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/head::head('编辑文章')"></head>
<body class="gray-bg">
<link href="../../resource/css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="../../resource/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>编辑文章信息</h5>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal" id="signupForm">
                <div class="form-group">
                    <label class="col-sm-2 control-label">文章标题</label>
                    <div class="col-sm-6">
                        <input type="text" id="articleTitle" name="articleTitle" maxlength="30" class="form-control">
                        <span class="help-block"><i class="fa fa-info-circle"></i>最多30个字符</span>
                    </div>
                </div>
                <!--<div class="hr-line-dashed"></div>-->
                <div class="form-group">
                    <label class="col-sm-2 control-label">文章分类</label>
                    <div class="col-sm-6">
                        <select id="sl_classify" style="height: 34px;" tabindex="2">
                            <option value="-1">请选择分类</option>
                        </select>
                    </div>
                </div>
                <!--<div class="hr-line-dashed"></div>-->
                <div class="form-group">
                    <label class="col-sm-2 control-label">文章简介</label>
                    <div class="col-sm-6">
                        <textarea rows="3" id="articleIntro" name="articleIntro" maxlength="150"
                                  class="form-control"></textarea>
                        <span class="help-block"><i class="fa fa-info-circle"></i>最多150个字符</span>
                    </div>
                </div>
                <!--<div class="hr-line-dashed"></div>-->
                <div class="form-group">
                    <label class="col-sm-2 control-label">上传封面</label>
                    <div class="col-sm-6">
                        <input type="hidden" id="txtcover" value=""/>
                        <input type="file" id="uploadfile" name="uploadfile" readonly="readonly" class="form-control">
                        <span class="help-block"><i class="fa fa-info-circle"></i>推荐尺寸：200*200</span>

                        <img class="imgpreview" src="../../resource/img/bg.png" style="width:200px;height:200px;"/>
                    </div>
                </div>
                <!--<div class="hr-line-dashed"></div>-->
                <div class="form-group">
                    <label class="col-sm-2 control-label">文章内容</label>
                    <div class="col-sm-8" id="eg">
                        <div class="ibox-content no-padding">
                            <div class="summernote" id="ArticleBody"></div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-8 col-sm-offset-5">
                        <button class="btn btn-success btn-submit" type="button" onclick="articleHandler.edit()">提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<footer th:include="common/footer::js"/>
<script src="../../resource/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
<script src="../../resource/js/plugins/summernote/summernote.min.js"></script>
<script src="../../resource/js/plugins/summernote/summernote-zh-CN.js"></script>
<script src="../../resource/js/views/articleedit.js"></script>
</body>
</html>